package com.pk.platform.domain.privilege;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Privilege implements Serializable {

	private String id;
	
	private String privilegeName;
	
	private String parentId;
	
	private String url;
	
	private Integer sort;
	
	private String isShow;
	
	private String type;
	
	private Set<Role> roleSet = new HashSet<Role>();
	
	private Set<Privilege> childrenSet = new HashSet<Privilege>();
	
	public Privilege()
	{
		
	}

	public Privilege(String id)
	{
		this.id = id;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPrivilegeName() {
		return privilegeName;
	}

	public void setPrivilegeName(String privilegeName) {
		this.privilegeName = privilegeName;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Set<Role> getRoleSet() {
		return roleSet;
	}

	public void setRoleSet(Set<Role> roleSet) {
		this.roleSet = roleSet;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Set<Privilege> getChildrenSet() {
		return childrenSet;
	}

	public void setChildrenSet(Set<Privilege> childrenSet) {
		this.childrenSet = childrenSet;
	}
	
}
